'use strict';(function(hb){function B(a,c,d){if(c){var e=function(){};e.prototype=c.prototype;c=new e;for(var f in d)c[f]=d[f];d.toString!==Object.prototype.toString&&(c.toString=d.toString)}else c=d;a.prototype=c}function aa(){return sa(this,"")}function ha(a,c){if(!c)return null;c.Ga||(c.Ga=++qe);var d;a.Ra?d=a.Ra[c.Ga]:a.Ra={};d||(d=function(){return d.method.apply(d.scope,arguments)},d.scope=a,d.method=c,a.Ra[c.Ga]=d);return d}function kc(a){return Array.isArray(a)?new ib(a):a.iterator()}function lc(a,
c,d){try{var e=new Blob([a.j.Ja],{type:d}),f=hb.navigator;if(null!=f.msSaveBlob){f.msSaveBlob(e,c);var g=null}else g=URL.createObjectURL(e)}catch(k){window.console.error("Failed to make blob",jb(k).Ca());g=a.length;e=0;for(f="";e<g;){var h=e+32768;h>g&&(h=g);f+=sa(String.fromCharCode.apply(null,re(a,0+e,h-e)),"");e=h}a=window.btoa(f);g="data:"+d+";base64,"+a}null!=g&&(d=ba("blob-savior",HTMLAnchorElement),null!=kb&&URL.revokeObjectURL(kb),kb=g,d.href=g,d.download=c,d.click())}function mc(a){var c=
new FileReader;c.onloadend=function(){ia.src=c.result;Ba()};c.readAsDataURL(a)}function nc(a){var c=new FileReader;c.onloadend=function(){try{var d=JSON.parse(c.result)}catch(l){window.alert("Error decoding JSON: "+sa(jb(l).Ca(),""));return}if("https://yal.cc/r/20/pixelfont/lang/"==d.$baseURI)lb(d);else{null!=d["glyph-base-y"]&&(d["glyph-baseline"]=d["glyph-base-y"]+1);null==d["glyph-color"]&&(d["glyph-color"]="black");for(var e=d,f=oc(e),g=0;g<f.length;){var h=f[g++],k=e[h];h=C(h);null!=h&&(k instanceof
Array?h.value=k.join("\n"):"boolean"==typeof k?h.checked=k:"number"==typeof k?h.valueAsNumber=k:h.value=k)}d=d["font-preview-text"];null!=d&&d instanceof Array&&(ta.innerText=d.join("\n"));Ba()}};c.readAsText(a)}function pc(a){switch(a.type){case "image/bmp":case "image/png":mc(a);break;case "application/json":nc(a);break;default:return!1}return!0}function se(){function a(g){g.preventDefault();return!1}var c=C("conf-hidden-form",HTMLFormElement),d=C("conf-import-input",HTMLInputElement),e=C("conf",
HTMLElement);d.onchange=function(){var g=d.files;null!=g&&(g=g[0],null!=g&&nc(g))};C("conf-import",HTMLInputElement).onclick=function(){c.reset();d.click()};C("conf-export",HTMLInputElement).onclick=function(){for(var g={$baseURI:"https://yal.cc/r/20/pixelfont/",$version:"1.0"},h=0,k=e.querySelectorAll("input, textarea, select");h<k.length;){var l=k[h];++h;var p=l;switch(p.type){case "button":case "file":continue}"conf-mode"!=p.name&&null!=p.id&&"conf-lang"!=p.id&&(p="TEXTAREA"==p.tagName?p.value.split("\n"):
"number"==p.type?p.valueAsNumber:"checkbox"==p.type?p.checked:p.value,g[l.id]=p)}g["font-preview-text"]=ta.innerText.split("\n");lc(mb(JSON.stringify(g,null,"\t")),C("font-name",HTMLInputElement).value+".json","application/json")};var f=C("source-input",HTMLInputElement);f.onchange=function(){if(null!=f.files){var g=f.files[0];null!=g&&mc(g)}};C("source-input-button",HTMLInputElement).onclick=function(){c.reset();f.click()};window.addEventListener("paste",function(g){for(var h=!1,k=0,l=g.clipboardData.files;k<
l.length;){var p=l[k];++k;pc(p)&&(h=!0)}h&&g.preventDefault()});window.document.body.addEventListener("dragover",a);window.document.body.addEventListener("dragenter",a);window.document.body.addEventListener("drop",function(g){g.preventDefault();var h=0;for(g=g.dataTransfer.files;h<g.length;){var k=g[h];++h;pc(k)}return!1})}function qc(a,c,d,e){a=a.H;var f=3,g=c,h=d,k=f,l=Ca,p=Da,w=nb;a.push(new W(g,h));for(var F=0;0==F||g!=c||h!=d||f!=k;){switch(f){case 0:(g+1<l&&0<w[h][g+1])==e?((h+1<p&&0<w[h+1][g+
1])==e&&(a.push(new W(g+1,h+1)),f=3),++g):(a.push(new W(g+1,h+1)),f=1);break;case 1:(0<h&&0<w[h-1][g])==e?((g+1<l&&0<w[h-1][g+1])==e&&(a.push(new W(g+1,h)),f=0),--h):(a.push(new W(g+1,h)),f=2);break;case 2:(0<g&&0<w[h][g-1])==e?((0<h&&0<w[h-1][g-1])==e&&(a.push(new W(g,h)),f=1),--g):(a.push(new W(g,h)),f=3);break;case 3:(h+1<p&&0<w[h+1][g])==e?((0<g&&0<w[h+1][g-1])==e&&(a.push(new W(g,h+1)),f=2),++h):(a.push(new W(g,h+1)),f=0)}++F}}function ua(a,c,d,e){null==e&&(e=!1);var f=nb,g=Ca,h=Da,k=f[c][a];
f[c][a]=d;var l=[];l.push(c);for(l.push(a);0<l.length;)c=l.shift(),a=l.shift(),0<a&&f[c][a-1]==k&&(f[c][a-1]=d,l.push(c),l.push(a-1)),a+1<g&&f[c][a+1]==k&&(f[c][a+1]=d,l.push(c),l.push(a+1)),0<c&&f[c-1][a]==k&&(f[c-1][a]=d,l.push(c-1),l.push(a)),c+1<h&&f[c+1][a]==k&&(f[c+1][a]=d,l.push(c+1),l.push(a)),e&&(0<a&&0<c&&f[c-1][a-1]==k&&(f[c-1][a-1]=d,l.push(c-1),l.push(a-1)),a+1<g&&0<c&&f[c-1][a+1]==k&&(f[c-1][a+1]=d,l.push(c-1),l.push(a+1)),0<a&&c+1<h&&f[c+1][a-1]==k&&(f[c+1][a-1]=d,l.push(c+1),l.push(a-
1)),a+1<g&&c+1<h&&f[c+1][a+1]==k&&(f[c+1][a+1]=d,l.push(c+1),l.push(a+1)))}function te(){this.ma=[];this.shape=new rc}function rc(){this.H=[]}function W(a,c){this.x=a;this.y=c}function ob(a,c){this.b=new RegExp(a,c.split("u").join(""))}function ba(a){return window.document.getElementById(a)}function sc(a,c){a.addEventListener("change",c);if("INPUT"==a.tagName){var d="number"==a.type;a.addEventListener("keydown",function(e){switch(e.keyCode){case 13:c(e);break;case 38:case 40:d&&c(e)}})}}function J(a,
c){a=a.charCodeAt(c);if(a==a)return a}function L(a,c,d){if(null==d)d=a.length;else if(0>d)if(0==c)d=a.length+d;else return"";return a.substr(c,d)}function tc(a,c,d){for(a=kc(a);a.la();)d=c(a.next(),d);return d}function ue(){function a(k,l){c[k]=0<=l.indexOf("\n")?l.split("\n"):l}for(var c={$baseURI:"https://yal.cc/r/20/pixelfont/lang/",$version:"1.0"},d=0,e=window.document.querySelectorAll("label[for]");d<e.length;){var f=e[d];++d;var g="label[for='"+f.htmlFor+"']";null!=f.title&&""!=f.title&&a(g+
"->title",f.title);var h=f.querySelector("span");null!=h&&(f=h);a(g+"->innerText",f.innerText)}d=0;for(e=window.document.querySelectorAll("*[loc]");d<e.length;)f=e[d],++d,a(f.tagName+"[loc='"+f.getAttribute("loc")+"']->innerText",f.innerText);d=0;for(e=window.document.querySelectorAll("*[raw-loc]");d<e.length;)f=e[d],++d,g=f.tagName,h=f.getAttribute("raw-loc"),f=ve(we(f.innerHTML)),f=f.replace(/\n\s+/g,"\n"),a(g+"[raw-loc='"+h+"']->innerHTML",f);d=0;for(e=window.document.querySelectorAll("*[id][title]");d<
e.length;)f=e[d],++d,a("#"+f.id+"->title",f.title);d=0;for(e=window.document.querySelectorAll("input[id][type='button'][value]");d<e.length;)f=e[d],++d,a("#"+f.id+"->value",f.value);d=0;for(e=window.document.querySelectorAll("textarea[id][placeholder]");d<e.length;)f=e[d],++d,a("#"+f.id+"->placeholder",f.placeholder);return c}function Pa(a){for(var c=new ca,d=0;d<a.length;){var e=a[d];++d;c.a[e]=!0}return c}function lb(a){if(Object.prototype.hasOwnProperty.call(a,"$baseURI"))for(var c=0,d=oc(a);c<
d.length;){var e=d[c];++c;if("$"!=e.charAt(0))if(Object.prototype.hasOwnProperty.call(uc,e)){var f=e.indexOf("->"),g=e.substring(0,f);f=e.substring(f+2);e=a[e];var h=window.document.querySelector(g);if(null==h)window.console.error("Lang: no element for "+g);else if(e instanceof Array&&(e=e.join("\n")),g=pb.a[h.tagName],"innerHTML"==f){g=h;f=window.document.createElement("div");f.innerHTML=e;e=0;for(h=f.querySelectorAll("*");e<h.length;){var k=h[e];++e;if(Object.prototype.hasOwnProperty.call(xe.a,
k.tagName))for(var l=pb.a["*"],p=pb.a[k.tagName],w=0,F=k.attributes;w<F.length;){var v=F[w];++w;var E=v.name.toLowerCase();Object.prototype.hasOwnProperty.call(p.a,E)||Object.prototype.hasOwnProperty.call(l.a,E)?"href"==E&&(E=k.getAttribute(v.name).toLowerCase(),vc(E,"http://")||vc(E,"https://")||(k.removeAttribute(v.name),window.console.warn("href can only be http[s]"))):(k.removeAttribute(v.name),window.console.warn("Removing forbidden attribute "+v.name))}else k.parentElement.removeChild(k),window.console.log("Removing forbidden element "+
k.outerHTML)}g.innerHTML=f.innerHTML}else"innerText"==f?(g=h.querySelector("span"),null!=g?g.innerText=e:h.innerText=e):"title"==f||"value"==f?h[f]=e:null!=g&&g.a[f]?h.setAttribute(f,e):window.console.error(f+" is not allowed")}else window.console.error(e+" is not part of translatable strings!")}}function qb(a){if("help"==a)ba("lang_help_a").click();else{var c=Qa[a];if(null!=c)lb(c);else if(Qa[a]={},wc)xc||(xc=!0,c=window.document.createElement("script"),window.b=function(e){Qa=e;qb(a)},c.src="lang/lang-assets.js",
c.onerror=function(){window.alert("Failed to load localizations! Please download a full release from https://yellowafterlife.itch.io/pixelfont for offline use.")},window.document.body.appendChild(c));else{var d=new XMLHttpRequest;d.open("GET","lang/"+a+".json",!0);d.responseType="json";d.onload=function(){var e=d.response;null!=e&&(Qa[a]=e,lb(e))};d.send()}}}function ye(){uc=ue();var a=ba("conf-lang"),c=ze.a.lang;null==c&&(c=window.localStorage.getItem("pixelfont-lang"));null!=c&&(qb(c),a.value=c);
a.addEventListener("change",function(){qb(a.value);"help"==a.value?a.value="":window.localStorage.setItem("pixelfont-lang",a.value)})}function C(a){return window.document.getElementById(a)}function Ba(a){yc||window.setTimeout(function(){window.console.log(window.performance.now());yc=!1;var c=zc.sheet;0<c.cssRules.length&&c.deleteRule(0);c.insertRule("@font-face { font-family: 'pixelfont'; src:url(data:font/ttf;base64,"+Ae(Ac())+") format('truetype'); }");null!=a&&a()})}function Bc(){se();Be();Ce();
ye();ta=C("dst-span");var a=C("dst-size",HTMLInputElement);sc(a,function(){ta.style.fontSize=a.value+"px"});ta.style.fontSize=a.value+"px";rb=new sb(C("dst-pan"),ta);zc=C("webfont-css");C("gen-ttf").onclick=function(){lc(Ac(),Cc+".ttf","font/ttf")};if(0==ia.width){var c=null;c=function(){ia.removeEventListener("load",c);Ba(function(){window.setTimeout(function(){rb.l()},100)})};ia.addEventListener("load",c)}else Ba(function(){window.setTimeout(function(){rb.l()},100)})}function sb(a,c){this.D=!1;
this.L=this.O=0;this.P=null;this.m=[];this.G=1;var d=this;this.J=a;this.J.classList.add("panner");this.image="IMG"==c.tagName?c:null;this.h=c;this.m.push(c);this.pan={x:0,y:0,z:0};a.addEventListener("mousedown",ha(this,this.ea));a.addEventListener("mousewheel",ha(this,this.W));a.addEventListener("DOMMouseScroll",ha(this,this.W));this.J.tabIndex=0;this.b();if(null!=this.image){var e=null;e=function(){d.image.removeEventListener("load",e);d.l()};0<this.image.width||0<this.image.height?this.l():this.image.addEventListener("load",
e)}}function x(a){var c=Dc.a[a];null==c&&(c=C(a,HTMLInputElement),Ea&&sc(c,function(){Ba()}),Dc.a[a]=c);return c}function Ac(){Ea=!0;var a=Ec=x("glyph-width").valueAsNumber|0,c=Fc=x("glyph-height").valueAsNumber|0,d=Gc=x("glyph-ofs-x").valueAsNumber|0,e=Hc=x("glyph-ofs-y").valueAsNumber|0,f=Ic=x("glyph-sep-x").valueAsNumber|0,g=Jc=x("glyph-sep-y").valueAsNumber|0,h=x("glyph-base-x").valueAsNumber|0,k=x("glyph-baseline").valueAsNumber|0,l=x("in-glyphs").value,p=x("in-kerning").value;tb=[];for(var w=
0,F=l.split("\n");w<F.length;){var v=F[w];++w;tb.push(v)}var E=x("font-em-square").valueAsNumber|0,A=x("font-px-size").valueAsNumber|0,Fa=x("glyph-color").value,Ga=x("font-ascend").valueAsNumber|0,X=x("font-descend").valueAsNumber|0,ja=x("font-line-gap").valueAsNumber|0;C("font-em-square-val",HTMLElement).innerText=""+E;C("font-ascend-val",HTMLElement).innerText=""+Ga;C("font-descend-val",HTMLElement).innerText=0>X?"- "+-X:"+ "+X;C("font-line-gap-val",HTMLElement).innerText=0>ja?"- "+-ja:"+ "+ja;
var M=C("font-metric-calc-val",HTMLElement),N=Ga-X+ja;M.innerText=""+N;var G=Math.abs(N-E);M.className=G<E/8?"good":G<E/2?"lessgood":"notgood";Ea=!1;var Kc=x("font-name").value;Cc=Kc;var r=new Lc(Kc,E,A);Ea=!0;r.Ta=x("font-is-mono").checked;r.Za=(x("glyph-spacing").valueAsNumber|0)*A;r.hc=a*A+r.Za;r.Bc(r.Dc(Ga));r.Cc(r.Ec(X));r.Fc(r.jc=ja);Ea=!1;r.Wd=x("font-author").value;r.be=x("font-version").value;r.Yd=x("font-desc").value;r.Xd=x("font-copy").value;r.Zd=x("font-license").value;r.$d=x("font-license-url").value;
r.ae=x("font-sample-text").value;var ub=ia,vb=window.document.createElement("canvas");vb.width=ub.width;vb.height=ub.height;var wb=vb.getContext("2d",null);wb.drawImage(ub,0,0);switch(Fa){case "black":var Ra=1;break;case "white":Ra=2;break;case "opaque":Ra=0;break;default:G=wb.getImageData(0,0,1,1).data,Ra=64>G[3]?2:1024>=3*G[0]+5*G[1]+G[2]?2:1}var Ha=Mc;Ha.style.width=a+"px";Ha.style.height=c+"px";Ha.style.fontSize=.7*c+"px";Ha.style.lineHeight=c+"px";var Nc=k-r.Qb/A,Oc=k-r.Sa/A;Ha.style.background=
"linear-gradient(180deg, rgba(255, 200,   0, 0.5) "+(Nc+"px,rgba(255,   0,   0, 0.5) ")+(Nc+"px,rgba(255,   0,   0, 0.5) 0,rgba(255,   0,   0, 0.5) ")+(k+"px,rgba(  0,   0, 255, 0.5) ")+(k+"px,rgba(  0,   0, 255, 0.5) ")+(Oc+"px,rgba(  0, 200, 255, 0.5) ")+(Oc+"px)");var Sa=0,Pc=0,Qc=!0;try{var De=window.document;G="lgcitaof";for(var O="",D=0,K;8>D;)K=J(G,D),++D,O+=da(K&-16|(K&15)+8*D+8&15);G=[-6,4,-9,-8];D=0;for(O="";4>D;)O+=da(G[D]+110),++D;var Ia=De[O];if(102!=Ia.charCodeAt(0)){G='<*#vgk&dm"';
O="";for(D=0;10>D;)K=J(G,D),++D,O+=da(K&-16|(K&15)+7*D+7&15);G=O;var Ta=Ia.indexOf(G);if(0>Ta){O="";for(D=0;19>D;)K=J("?%&\u007fnl)m\u007fagiwg!cwm&",D),++D,O+=da(K&-16|(K&15)+15*D+12&15);Ta=Ia.indexOf(O)}Qc=0<=Ta&&8>Ta}}catch(Ch){}var Rc=!1;D=0;for(F=xb(l);D<F;D++){var Ka=Ja(l,D);if(13!=Ka)if(10==Ka)Sa=0,++Pc;else{if(32==Ka)if(Rc){++Sa;continue}else Rc=!0;for(var Ua=Qc?r.ra(Ka):new yb(r,Ka),Va=wb.getImageData(d+Sa*(a+f),e+Pc*(c+g),a,c).data,Wa=0,Sc=Array(c),zb=0,Ee=c;zb<Ee;zb++){for(var Xa=Array(a),
La=0,Fe=a;La<Fe;La++){O=Va[Wa++];var Tc=Va[Wa++],Uc=Va[Wa++],Ab=Va[Wa++];switch(Ra){case 1:Xa[La]=128<=Ab&&1024>=3*O+5*Tc+Uc;break;case 2:Xa[La]=128<=Ab&&1024<3*O+5*Tc+Uc;break;default:Xa[La]=128<=Ab}}Sc[zb]=Xa}var Ge=Ua;var Bb=Sc,ka=Bb.length;if(0==ka)var Cb=[];else{var la=Bb[0].length;if(0==la)Cb=[];else{Da=ka;Ca=la;for(var Y=Array(ka),y=0,Z=ka;y<Z;y++){for(var He=Bb[y],Vc=Array(la),z=0,Ma=la;z<Ma;z++)Vc[z]=He[z]?2147483647:-2147483647;Y[y]=Vc}nb=Y;y=0;for(Z=ka;y<Z;y++)-2147483647==Y[y][0]&&ua(0,
y,0,!0),-2147483647==Y[y][la-1]&&ua(la-1,y,0,!0);z=0;for(Z=la;z<Z;z++)-2147483647==Y[0][z]&&ua(z,0,0,!0),-2147483647==Y[ka-1][z]&&ua(z,ka-1,0,!0);var Na=[];Db=Na;var Ie=0;y=0;for(Z=Da;y<Z;y++)for(z=0,Ma=Ca;z<Ma;z++)if(2147483647==Y[y][z]){ua(z,y,++Ie);var ma=new te;ma.xd=z;ma.ee=y;Na.push(ma)}var Je=0;y=0;for(Z=Da;y<Z;y++)for(z=0,Ma=Ca;z<Ma;z++)if(-2147483647==Y[y][z]){ua(z,y,--Je);var Ke=Y[y-1][z],Wc=new rc;qc(Wc,z,y,!1);Db[Ke-1].ma.push(Wc)}for(var Eb=0;Eb<Na.length;)ma=Na[Eb],++Eb,qc(ma.shape,
ma.xd,ma.ee,!0);Db=null;Cb=Na}}Ge.U=Cb;for(var Xc=!0,Fb=0,Yc=Ua.U;Fb<Yc.length;){K=Yc[Fb];++Fb;K.shape.H.reverse();K.shape.H.pop();for(var Gb=0,Zc=K.shape.H;Gb<Zc.length;){var va=Zc[Gb];++Gb;va.x-=h;va.y=k-va.y;var $c=va.x*A,ad=va.y*A;Xc?(Xc=!1,Ua.w=new T($c,ad)):Ua.w.add($c,ad)}for(var Hb=0,bd=K.ma;Hb<bd.length;){Ia=bd[Hb];++Hb;var Ib=Ia.H;Ib.pop();for(var Jb=0;Jb<Ib.length;){var Ya=Ib[Jb];++Jb;Ya.x-=h;Ya.y=k-Ya.y}}}++Sa}}r.ce();Le(p,r,A);console.log("Generating font file for "+r.name+" "+r.C.length+
" glyphs");if(0==r.C.length)var cd=null;else{dd.a["TrueType.build"]=(new Date).getTime();var H=new ed(new fd);H.b(Me(r));H.b(Ne(r,"ttf"));H.b(Oe(r));H.b(Pe(r));r.Bd()&&H.b(Qe(r));H.b(Re(r));H.b(Se(r));H.b(Te(r));H.b(Ue(r));var hd=new gd(r);H.b(hd);H.b(new id(hd));H.b(new jd(H.l()));for(var Q=Object.create(null),kd=0,R=0,ea=Ve;R<ea.length;){var U=ea[R];++R;var fa=H.h(U);if(null!=fa){++kd;var ld=new Za,na=new $a(ld);console.log("Writing "+fa.tag);fa.write(na);fa.length=na.i;na.oc();Q[U]=ld.I();fa.sa=
md(Q[U])}}var oa=12+16*kd;R=0;for(ea=nd;R<ea.length;)U=ea[R],++R,fa=H.h(U),null!=fa&&(fa.offset=oa,oa+=Q[U].length);var Oa=new Za;na=new $a(Oa);H.h(pa).write(na);Q[pa]=Oa.I();Oa=new Za;na=new $a(Oa);H.h(qa).write(na);Q[qa]=Oa.I();var ab=new ra;ab.h(Q[qa],0,Q[qa].length);ab.h(Q[pa],0,Q[pa].length);R=0;for(ea=nd;R<ea.length;)U=ea[R],++R,Object.prototype.hasOwnProperty.call(Q,U)&&ab.h(Q[U],0,Q[U].length);var wa=ab.I(),bb=-1313820742-md(wa);oa=H.h(cb).offset+8;wa.j[oa]=bb>>>24&255;wa.j[oa+1]=bb>>>16&
255;wa.j[oa+2]=bb>>>8&255;wa.j[oa+3]=bb&255;var od=dd.a["Mortar.build"];null!=od&&console.log("Mortar.build took "+((new Date).getTime()-od)+"ms");cd=wa}return cd}function Kb(){this.C=[];this.La=new xa}function Lc(a,c,d){this.ic=[];this.jc=0;this.qa=null;Kb.call(this);this.mf(a);this.lf(c);this.Aa=d;this.Bc(c+2*d);this.Cc(0);this.Dc(c+2*d);this.Ec(0);this.Fc(c)}function Lb(a){this.kf(a);this.X=!1}function yb(a,c){this.mc=this.kc=-1;this.U=[];this.font=a;Lb.call(this,c);this.w=new T}function Mb(a,
c){try{return a[c]}catch(d){return null}}function oc(a){var c=[];if(null!=a){var d=Object.prototype.hasOwnProperty,e;for(e in a)"__id__"!=e&&"hx__closures__"!=e&&d.call(a,e)&&c.push(e)}return c}function Nb(a){var c=parseInt(a,10);if(0==c){var d=J(a,1);if(120==d||88==d)c=parseInt(a)}return isNaN(c)?null:c}function vc(a,c){return a.length>=c.length&&0==a.lastIndexOf(c,0)}function pd(a,c){a=J(a,c);return 8<a&&14>a||32==a}function ve(a){for(var c=a.length,d=0;d<c&&pd(a,d);)++d;return 0<d?L(a,d,c-d):a}
function we(a){for(var c=a.length,d=0;d<c&&pd(a,c-d-1);)++d;return 0<d?L(a,0,c-d):a}function Ce(){function a(h){var k=h.offsetX;h=h.offsetY;var l=f.G;k=(k+f.pan.x)/l;h=(h+f.pan.y)/l;var p=Ec+Ic,w=Fc+Jc,F=Gc,v=Hc;l=Math.floor((k-F)/p);var E=Math.floor((h-v)/w);k=F+p*l;h=v+w*E;if(e.pc!=k||e.qc!=h){e.pc=k;e.qc=h;k=tb[E];var A;null!=k?A=0<=l&&l<xb(k)?qd(k,l):null:A=null;null!=A?(e.style.display="",e.innerText=A,f.gb(e)):""==e.style.display&&(e.style.display="none",f.gb(e))}}function c(h){g!=h&&((g=h)?
f.J.addEventListener("mousemove",a):(f.J.removeEventListener("mousemove",a),e.style.display="none"))}var d=ba("src-debug"),e=window.document.createElement("div"),f=rd;Mc=e;e.classList.add("glyph-guide");e.style.width="6px";e.style.height="8px";f.od(e);var g=!1;c(d.checked);d.onchange=function(){c(d.checked)}}function qd(a,c){if(0>c)return"";for(var d=0,e=0;e<a.length;++d){var f=e++,g=a.charCodeAt(f);55296<=g&&56319>=g&&(g=g-55232<<10|a.charCodeAt(f+1)&1023);if(d==c)return String.fromCodePoint(g);
65536<=g&&++e}return""}function Ja(a,c){if(0>c)return null;for(var d=0,e=0;e<a.length;++d){var f=e++,g=a.charCodeAt(f);55296<=g&&56319>=g&&(g=g-55232<<10|a.charCodeAt(f+1)&1023);if(d==c)return g;65536<=g&&++e}return null}function sd(a,c,d){0>c&&(c=0);if(null!=d){0>d&&(d=0);if(c==d)return"";if(c>d){var e=c;c=d;d=e}}for(var f=e=0,g=-1,h=0;f<a.length;){var k=a.charCodeAt(f);55296<=k&&56319>=k&&(k=k-55232<<10|a.charCodeAt(f+1)&1023);if(c<=e){if(0>g){if(null==d)return L(a,f,null);g=f}++h;if(h>=d-c)return L(a,
g,(65536>k?f:f+1)-g+1)}f+=65536<=k?2:1;++e}return 0>g?"":L(a,g,null)}function xb(a){for(var c=0,d=0;d<a.length;++c){var e=a,f=d++,g=e.charCodeAt(f);55296<=g&&56319>=g&&(g=g-55232<<10|e.charCodeAt(f+1)&1023);65536<=g&&++d}return c}function Ne(a,c){var d=new td,e=new Date;d.ye(c).pe(ud(e)).Je(ud(e)).we(1,0).se(a.Y);c=null;e=0;for(a=a.C;e<a.length;){var f=a[e];++e;f=f.Z();null==c?c=f:null!=f&&(c=c.rf(f))}null==c&&(c=new T);d.je(c).Ee(We).ve(2).De(!0).Ne(8);return d}function Me(a){var c=new vd;c.qb(new Ob(0,
3,0));c.qb(new Ob(3,1,0));for(var d=0,e=c.da;d<e.length;){var f=e[d];++d;for(var g=0,h=a.C;g<h.length;){var k=h[g];++g;k.X?f.Dd():f.qd(k.F)}}return c}function Oe(a){for(var c=new wd,d=db,e=db,f=0,g=0,h,k=0,l=a.C;k<l.length;){var p=l[k];++k;0>=p.Pa()||(p.aa()>f&&(f=p.aa()|0),p.ba()<d&&(d=p.ba()|0),p.xa()<e&&0!=p.F&&(e=p.xa()|0),h=p.Z(),h=p.ba()+(null==h?0:h.width),h>g&&(g=h|0))}c.ge(f).he(a.vc|0).me(0).ne(1).oe(0).re(a.wc|0).Ce(a.Fb()).He(d).Ie(e).Me(a.Gb()).af(g);return c}function Pe(a){var c=new xd,
d=0;for(a=a.C;d<a.length;){var e=a[d];++d;c.sd(e.aa()|0,e.ba()|0)}return c}function Re(a){var c=new yd;c.Ya(zd).Le(a.C.length);var d=0,e=0,f=0;for(a=a.C;f<a.length;){var g=a[f];++f;var h=g.Lb();h>d&&(d=h);g=g.Pa();g>e&&(e=g)}c.Ge(d).Fe(e);return c}function Se(a){for(var c=new Ad,d=1;3>d;d++){var e=[Xe],f=[Ye],g=[0];1==d?(e[0]=Ze,f[0]=Bd,g[0]=$e):2==d&&(e[0]=af,f[0]=bf,g[0]=cf);e=function(h,k,l){return function(p,w){null!=w&&c.td(p,w,l[0],k[0],h[0])}}(g,f,e);e(df,a.Ib());e(ef,a.ca());e(ff,a.Qa());
e(gf,null==a.ca()?null:a.ca());e(hf,a.Oa());e(jf,a.Pb());e(kf,a.Mb());e(lf,a.Zf);e(mf,a.Of);e(nf,a.Hb());e(of,a.Jb());e(pf,a.ag);e(qf,a.URL);e(rf,a.Kb());null!=a.wa()&&0<a.wa().length&&e(sf,a.wa());e(tf,a.Nb());if(null!=a.La)for(f=a.La.keys();f.la();)g=f.next(),e(g,a.La.a[g])}return c}function Te(a){var c=new Cd,d=a.Y/2|0;c.Ya(2).ie(uf(a)).Xe(Dd).Ye(Ed).te(vf).cf(d).ef(d).bf(0).df(a.Sa/2|0).gf(d).jf(d).ff(0).hf(d).Pe(a.Y/20|0).Oe(a.Y/5|0);d=[];for(var e=0,f=a.C;e<f.length;){var g=f[e];++e;d.push(g.F);
c.ud(wf(g.F))}c.We(a.Ob()).xe(64).ue(xf(a)).Be(yf(a)).Re(a.Qb|0).Se(a.Sa|0).Te(a.qf|0).Ze(a.vc|0).$e(0-a.wc|0);e=0;f=a.Na(120);null!=f&&null!=f.Z()&&(e=f.Z().height|0);c.Qe(e);e=0;a=a.Na(72);null!=a&&null!=a.Z()&&(e=a.Z().height|0);c.le(e).qe(0).ke(32);a=[];a.push(new S(Fd));a.push(new S(Gd));a.push(new S(Hd));a.push(new S(Id));a.push(new S(Jd));a.push(new S(Kd));a.push(new S(Ld));a.push(new S(Md));a.push(new S(Nd));a.push(new S(Od));for(e=0;e<a.length;)f=a[e],++e,f.Fd(d)&&c.pd(f.ka());return c}function Ue(a){var c=
new Pd(zf);c.Ke(a.Tb()).ze(0,0).Ue(a.Y/10|0).Ve(a.Y/20|0);return c}function Qe(a){var c=new Qd;c.Ae(a.va());return c}function uf(a){var c=0,d=0,e=0;for(a=a.C;e<a.length;){var f=a[e];++e;f=f.aa();0<f&&(c+=f,++d)}return Math.floor(c/d)|0}function xf(a){a=tc(a.C,function(c,d){return 0==c.X&&1<c.F&&c.F<d?c.F:d},db);return a==db?0:a}function yf(a){return tc(a.C,function(c,d){return c.F>d?c.F:d},0)}function md(a){for(var c=new t(0,0),d=a.length,e=0;e<d;e+=4){var f=(a.j[e]<<24)+(a.j[e+1]<<16)+(a.j[e+2]<<
8)+a.j[e+3],g=c.high+(f>>31)|0;f=c.low+f|0;0>V(f,c.low)&&(g++,g|=0);c=new t(g,f)}c=Rd(c,new t(1,0)).gc;return c.low}function ed(a){this.m=a;this.f=new ca;this.f.a[a.tag]=a}function wf(a){null==m&&(m=new xa,m.a[Af]=new n(0,127),m.a[Bf]=new n(128,255),m.a[Cf]=new n(256,383),m.a[Df]=new n(384,591),m.a[Ef]=new n(592,687),m.a[Ff]=new n(688,767),m.a[Sd]=new n(768,879),m.a[Gf]=new n(880,1023),m.a[Hf]=new n(1024,1279),m.a[If]=new n(1280,1327),m.a[Jf]=new n(1328,1423),m.a[Kf]=new n(1424,1535),m.a[Lf]=new n(1536,
1791),m.a[Mf]=new n(1792,1871),m.a[Nf]=new n(1920,1983),m.a[Of]=new n(2304,2431),m.a[Pf]=new n(2432,2559),m.a[Qf]=new n(2560,2687),m.a[Rf]=new n(2688,2815),m.a[Sf]=new n(2816,2943),m.a[Tf]=new n(2944,3071),m.a[Uf]=new n(3072,3199),m.a[Vf]=new n(3200,3327),m.a[Wf]=new n(3328,3455),m.a[Xf]=new n(3456,3583),m.a[Yf]=new n(3584,3711),m.a[Zf]=new n(3712,3839),m.a[$f]=new n(3840,4095),m.a[ag]=new n(4096,4255),m.a[bg]=new n(4256,4351),m.a[cg]=new n(4352,4607),m.a[dg]=new n(4608,5023),m.a[eg]=new n(5024,5119),
m.a[fg]=new n(5120,5759),m.a[gg]=new n(5760,5791),m.a[hg]=new n(5792,5887),m.a[ig]=new n(5888,5919),m.a[jg]=new n(6016,6143),m.a[kg]=new n(6144,6319),m.a[Sd]=new n(7616,7679),m.a[lg]=new n(7680,7935),m.a[mg]=new n(7936,8191),m.a[ng]=new n(8192,8303),m.a[og]=new n(8304,8351),m.a[pg]=new n(8352,8399),m.a[qg]=new n(8400,8447),m.a[rg]=new n(8448,8527),m.a[sg]=new n(8528,8591),m.a[tg]=new n(8592,8703),m.a[ug]=new n(8704,8959),m.a[vg]=new n(8960,9215),m.a[wg]=new n(9216,9279),m.a[xg]=new n(9280,9311),m.a[yg]=
new n(9312,9471),m.a[zg]=new n(9472,639),m.a[Ag]=new n(9600,9631),m.a[Bg]=new n(9632,9727),m.a[Cg]=new n(9728,9983),m.a[Dg]=new n(9984,10175),m.a[Eg]=new n(10240,10495),m.a[Fg]=new n(12288,12351),m.a[Gg]=new n(12352,12447),m.a[Hg]=new n(12448,12543),m.a[Ig]=new n(12544,12591),m.a[Jg]=new n(12592,12687),m.a[Kg]=new n(12800,13055),m.a[Lg]=new n(65072,65103),m.a[Mg]=new n(19968,40959),m.a[Ng]=new n(40960,42127),m.a[Og]=new n(44032,55215),m.a[Pg]=new n(57344,63743),m.a[Qg]=new n(63744,64255),m.a[Rg]=
new n(64256,64335),m.a[Sg]=new n(64336,65023),m.a[Tg]=new n(65024,65039),m.a[Ug]=new n(65056,65071),m.a[Vg]=new n(65104,65135),m.a[Wg]=new n(65136,65279),m.a[Xg]=new n(65280,65519),m.a[Yg]=new n(65520,65535),m.a[Zg]=new n(66304,66351),m.a[$g]=new n(66352,66383),m.a[ah]=new n(66560,66639),m.a[bh]=new n(118784,119039),m.a[ch]=new n(119808,120831),m.a[dh]=new n(917504,917631));for(var c=m.keys();c.la();){var d=c.next(),e=m.a[d];if(a>=e.from&&a<=e.pf)return d}return-1}function n(a,c){this.from=a;this.pf=
c}function S(a){this.id=a;this.M=[];this.load();Td||(I=new xa,I.a[Fd]=0,I.a[Gd]=1,I.a[Hd]=2,I.a[Id]=3,I.a[Jd]=4,I.a[Kd]=5,I.a[Ld]=6,I.a[Md]=7,I.a[Nd]=8,I.a[Od]=16,I.a[eh]=17,I.a[fh]=18,I.a[gh]=19,I.a[hh]=20,Td=!0);this.b=I.a[a]}function Ud(a,c,d){null==a&&(a=0);null==c&&(c=0);null==d&&(d=1);this.x=a;this.y=c;this.flags=d;this.next=this.b=null}function Vd(){}function Wd(a){this.Ma=a}function Xd(){this.H=[];this.ya=0;this.b=null}function Za(a){this.buffer=new ra;null!=a&&this.buffer.add(a);this.b=this.buffer.i}
function u(a){null==a&&(a="");this.tag=a;this.sa=this.length=this.offset=0}function Pb(a,c,d){u.call(this);this.X=0;this.Ba=a;this.ja=c;this.Wb=d;this.M=[]}function Ob(a,c,d){Pb.call(this,a,c,d);this.pa=[];this.$=[];this.sc=!1}function vd(){u.call(this,Qb);this.da=[]}function td(){u.call(this,cb);this.format="ttf";this.wd=0;this.Bb=1;this.Ab=0;this.Lc=1024;this.flags=0;this.xb=new t(0,0);this.fc=new t(0,0);this.$b=0;this.Yb=3;this.zb=2;this.Rb=1}function gd(a){u.call(this,Rb);this.font=a}function wd(){u.call(this,
Sb);this.Xb=this.yb=this.sb=0;this.ub=1;this.nc=this.Zc=this.ec=this.dc=this.rb=this.tb=this.vb=0}function xd(){u.call(this,Tb);this.cc=[]}function ih(a,c){this.vd=a;this.Zb=c}function Qd(){u.call(this,Ub)}function id(a){u.call(this,Vb);this.Ad=a}function yd(){u.call(this,Wb);this.version=zd;this.Nd=this.Od=this.ac=this.bc=this.lc=0;this.Vd=2;this.Ld=this.Md=this.Rd=this.Sd=this.Qd=this.Pd=this.Td=this.Ud=0}function Yd(a,c,d,e,f){this.Ba=a;this.ja=c;this.Wb=d;this.f=e;this.b=null==f?"":f;this.offset=
0}function Ad(){u.call(this,Xb);this.format=0;this.oa=[]}function Cd(){u.call(this,Yb);this.version=3;this.Yc=0;this.Qc=Dd;this.Rc=Ed;this.Db=jh;this.ed=this.cd=100;this.bd=0;this.jd=this.gd=this.dd=100;this.fd=0;this.hd=100;this.ad=50;this.$c=225;this.fe=0;this.v=[];this.v.push(0);this.v.push(0);this.v.push(0);this.v.push(0);this.v.push(0);this.v.push(0);this.v.push(0);this.v.push(0);this.v.push(0);this.v.push(0);this.v[2]=4;this.bb=1;this.fb=this.eb=this.cb=0;this.ob="FSTR";this.Cb=64;this.Oc=32;
this.Pc=255;this.Tc=this.Sc=this.Ac=this.zc=this.yc=0;this.$a=1;this.Nc=this.xc=this.Ic=this.ab=0;this.Mc=32;this.sf=0}function Pd(a){u.call(this,Zb);this.version=a;this.Ub=this.Vb=0;this.Jc=100;this.Kc=10;this.Sb=0;this.names=[];this.Gc=[]}function jd(a){u.call(this,qa);this.Wa=a}function fd(){u.call(this,pa);this.entries=[]}function Zd(a){this.table=a}function ud(a){a=a.getTime();if(isNaN(a)||!isFinite(a))throw q("Number is NaN or Infinite");var c=a-a%1;if(9007199254740991<c)throw q("Conversion overflow");
if(-9007199254740991>c)throw q("Conversion underflow");a=new t(0,0);var d=0>c;c=d?-c:c;for(var e=0;1<=c;){var f=c%2;c/=2;if(1<=f){f=e;f&=63;var g=0==f?new t(0,1):32>f?new t(0<<f|1>>>32-f,1<<f):new t(1<<f-32,0);f=a.high+g.high|0;g=a.low+g.low|0;0>V(g,a.low)&&(f++,f|=0);a=new t(f,g)}++e}d&&(f=~a.high,g=~a.low+1|0,0==g&&(f++,f|=0),a=new t(f,g));c=ya(24107,23552);e=ya(0,23552);f=ya(24107,1318);d=(ya(0,1318)+(f>>>16)|0)+(e>>>16)|0;f<<=16;c=c+f|0;0>V(c,f)&&(h++,h|=0);e<<=16;c=c+e|0;0>V(c,e)&&h++;ya(24107,
0);ya(0,864E5);var h=a.low+c|0;0>V(h,a.low)&&(d++,d|=0);a=new t(d,h);return a=Rd(a,new t(0,1E3)).tc}function $a(a){this.b=a;this.i=0}function kh(a,c,d){this.left=a;this.right=c;this.value=d}function T(a,c,d,e){null==a&&(a=0);null==c&&(c=0);null==d&&(d=0);null==e&&(e=0);this.x=a;this.y=c;this.width=d;this.height=e}function lh(a){var c=Object.keys(a),d=c.length,e=0;return{la:function(){return e<d},next:function(){e+=1;return a[c[e-1]]}}}function ca(){this.a=Object.create(null)}function jb(a){return a instanceof
za?a:a instanceof Error?new za(a.message,null,a):new $b(a,null,a)}function q(a){return a instanceof za?a.Ha:a instanceof Error?a:new $b(a)}function za(a,c,d){this.message=a;this.Ha=null!=d?d:this}function V(a,c){return 0>a?0>c?~c-~a|0:1:0>c?-1:a-c|0}function Rd(a,c){if(0==c.high)switch(c.low){case 0:throw q("divide by zero");case 1:return{tc:new t(a.high,a.low),gc:new t(0,0)}}var d=0>a.high!=0>c.high;if(0>a.high){var e=~a.high,f=~a.low+1|0;0==f&&(e++,e|=0);var g=new t(e,f)}else g=new t(a.high,a.low);
0>c.high&&(e=~c.high,f=~c.low+1|0,0==f&&(e++,e|=0),c=new t(e,f));for(var h=new t(0,0),k=new t(0,1);!(0>c.high||(e=V(c.high,g.high),e=0!=e?e:V(c.low,g.low),f=1,f&=63,c=0==f?new t(c.high,c.low):32>f?new t(c.high<<f|c.low>>>32-f,c.low<<f):new t(c.low<<f-32,0),f=1,f&=63,k=0==f?new t(k.high,k.low):32>f?new t(k.high<<f|k.low>>>32-f,k.low<<f):new t(k.low<<f-32,0),0<=e)););for(;0!=k.high||0!=k.low;)e=V(g.high,c.high),0<=(0!=e?e:V(g.low,c.low))&&(h=new t(h.high|k.high,h.low|k.low),e=g.high-c.high|0,f=g.low-
c.low|0,0>V(g.low,c.low)&&(e--,e|=0),g=new t(e,f)),f=1,f&=63,k=0==f?new t(k.high,k.low):32>f?new t(k.high>>>f,k.high<<32-f|k.low>>>f):new t(0,k.high>>>f-32),f=1,f&=63,c=0==f?new t(c.high,c.low):32>f?new t(c.high>>>f,c.high<<32-f|c.low>>>f):new t(0,c.high>>>f-32);d&&(e=~h.high,f=~h.low+1|0,0==f&&(e++,e|=0),h=new t(e,f));0>a.high&&(e=~g.high,f=~g.low+1|0,0==f&&(e++,e|=0),g=new t(e,f));return{tc:h,gc:g}}function t(a,c){this.high=a;this.low=c}function $d(a){for(var c=0,d=ac;c<d.length;){var e=d[c];++c;
if(e.name==a){if(null!=e.Hc)a=e.Hc;else{a=e.data;c=void 0;null==c&&(c=!0);if(c)for(;61==J(a,a.length-1);)a=L(a,0,-1);a=(new bc(ae)).l(mb(a)).toString()}return a}}return null}function $b(a,c,d){za.call(this,String(a),c,d);this.value=a}function mh(a){var c=new cc,d=a.B(),e=a.B();c.ha=a.B()<<8|a.B();c.ia=d<<8|e;return c}function cc(){this.ha=1;this.ia=0}function mb(a,c){if(1==c){var d=new Uint8Array(a.length<<1);c=0;for(var e=a.length;c<e;c++){var f=a.charCodeAt(c);d[c<<1]=f&255;d[c<<1|1]=f>>8}return new P(d.buffer)}d=
[];for(c=0;c<a.length;)f=a.charCodeAt(c++),55296<=f&&56319>=f&&(f=f-55232<<10|a.charCodeAt(c++)&1023),127>=f?d.push(f):(2047>=f?d.push(192|f>>6):(65535>=f?d.push(224|f>>12):(d.push(240|f>>18),d.push(128|f>>12&63)),d.push(128|f>>6&63)),d.push(128|f&63));return new P((new Uint8Array(d)).buffer)}function be(a){var c=a.Cd;return null!=c?c:new P(a)}function P(a){this.length=a.byteLength;this.j=new Uint8Array(a);this.j.Ja=a;a.Cd=this;a.Bf=this.j}function Ae(a,c){null==c&&(c=!0);var d=(new bc(ae)).m(a).toString();
if(c)switch(a.length%3){case 1:d+="==";break;case 2:d+="="}return d}function bc(a){for(var c=a.length,d=1;c>1<<d;)++d;if(8<d||c!=1<<d)throw q("BaseCode : base length must be a power of two.");this.b=a;this.f=d}function xa(){this.a={}}function dc(){this.length=0}function ce(a,c){this.item=a;this.next=c}function ra(){this.b=this.i=0}function de(){}function ee(a,c,d){null==c&&(c=0);null==d&&(d=a.length-c);if(0>c||0>d||c+d>a.length)throw q(Aa);this.j=a.j;this.i=c;this.o=d}function eb(){}function fe(){var a=
["Blocked",0];a.b=ge;a.toString=aa;return a}function Aa(){var a=["OutsideBounds",2];a.b=ge;a.toString=aa;return a}function nh(a){a=new ec(a);a.f=null;return a.toString()}function oh(a){a=new ec(a);a.b=null;return a.toString()}function ec(a){switch(a){case ".":case "..":this.b=a;this.h="";return}var c=a.lastIndexOf("/"),d=a.lastIndexOf("\\");c<d?(this.b=L(a,0,d),a=L(a,d+1,null),this.l=!0):d<c?(this.b=L(a,0,c),a=L(a,c+1,null)):this.b=null;c=a.lastIndexOf(".");-1!=c?(this.f=L(a,c+1,null),this.h=L(a,
0,c)):(this.f=null,this.h=a)}function re(a,c,d){null==c&&(c=0);null==d&&(d=a.length-c);return new Uint8Array(a.j.Ja,c,d)}function ib(a){this.f=0;this.b=a}function he(a,c){a=["FUnknown",0,a,c];a.b=fc;a.toString=aa;return a}function ph(a,c){a=["FInfoZipUnicodePath",1,a,c];a.b=fc;a.toString=aa;return a}function qh(){var a=["FUtf8",2];a.b=fc;a.toString=aa;return a}function fb(a){a=["Found",0,a];a.b=gc;a.toString=aa;return a}function gb(a,c){a=["NeedBit",1,a,c];a.b=gc;a.toString=aa;return a}function ie(){}
function je(a){this.buffer=new P(new ArrayBuffer(65536));this.i=0;a&&(this.b=new cc)}function ke(a,c,d){null==c&&(c=!0);null==d&&(d=!0);this.Da=!1;this.ea=new ie;this.W=this.jb();this.fa=null;this.O=this.o=0;this.h=c?0:1;this.L=a;this.f=this.D=this.m=0;this.Ea=null;this.P=0;this.b=[];this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);
this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.b.push(-1);this.window=new je(d)}function le(a){this.b=a}function rh(a){if(null==a)return null;if(a instanceof Array)return Array;var c=a.nb;if(null!=c)return c;a=sh.call(a).slice(8,-1);a="Object"==a||"Function"==a||"Math"==a||"JSON"==a?null:a;return null!=a?hb[a]:null}function sa(a,c){if(null==a)return"null";if(5<=c.length)return"<...>";var d=typeof a;"function"==d&&(a.yf||a.Fa)&&(d="object");switch(d){case "object":if(a instanceof
Array){d="[";c+="\t";for(var e=0,f=a.length;e<f;e++)d+=(0<e?",":"")+sa(a[e],c);return d+"]"}try{e=a.toString}catch(g){return"???"}if(null!=e&&e!=Object.toString&&"function"==typeof e&&(d=a.toString(),"[object Object]"!=d))return d;d="{\n";c+="\t";e=null!=a.hasOwnProperty;f=null;for(f in a)e&&!a.hasOwnProperty(f)||"prototype"==f||"__class__"==f||"__super__"==f||"__interfaces__"==f||"__properties__"==f||(2!=d.length&&(d+=", \n"),d+=c+f+" : "+sa(a[f],c));c=c.substring(1);return d+("\n"+c+"}");case "function":return"<function>";
case "string":return a;default:return String(a)}}function Le(a,c,d){function e(M){return 32!=M?9==M:!0}function f(){for(;v<E;)if(e(Ja(A,v)))v+=1;else return!1;return v>=E}function g(){for(var M=v;v<E;){var N=Ja(A,v);if(null==N)if(48<=N&&57>=N)v+=1;else break;else switch(N){case 45:case 46:v+=1;break;default:if(48<=N&&57>=N)v+=1;else return v==M?NaN:parseFloat(sd(A,M,v))}}return v==M?NaN:parseFloat(sd(A,M,v))}function h(){for(var M=[];v<E;){var N=Ja(A,v);if(e(N))break;var G=k[N];null==G?hb.console.warn("Glyph `"+
qd(A,v)+"` (codepoint "+N+") is not in the font."):M.push(G);v+=1}return M}for(var k={},l=0,p=c.C;l<p.length;){var w=p[l],F=l++;k[w.F]=F}c=c.ic;var v=0,E=0,A=null;l=0;for(a=a.split("\n");l<a.length;)if(p=a[l],++l,A=p,v=0,E=xb(A),!(e(Ja(A,0))||(p=h(),f()||(w=h(),f()||(F=g(),isNaN(F)))))){f()||g();for(var Fa=0;Fa<p.length;){var Ga=p[Fa];++Fa;for(var X=0;X<w.length;){var ja=w[X];++X;c.push(new kh(Ga,ja,F*d))}}}}function Be(){function a(){for(var e=0;e<d.length;){var f=d[e];++e;f.step=c.value}}var c=
ba("font-px-size"),d=[ba("font-line-gap"),ba("font-ascend"),ba("font-descend")];c.addEventListener("change",a);a()}var qe=0;ob.prototype={split:function(a){return a.replace(this.b,"#__delim__#").split("#__delim__#")}};sb.prototype={od:function(a){this.J.appendChild(a);this.m.push(a);this.b()},gb:function(a,c,d){null==c&&(c=this.pan.x,1<=this.G&&(c|=0));null==d&&(d=this.pan.y,1<=this.G&&(d|=0));c=-(c-(a.pc||0)*this.G);d=-(d-(a.qc||0)*this.G);var e=a.Xf;null!=e?(a.style.fontSize=this.G*e+"px",a.style.left=
c+"px",a.style.top=d+"px"):a.style.transform="matrix("+this.G+",0,0,"+this.G+","+c+","+d+")"},b:function(){var a=1<=this.G;a!=this.P&&((this.P=a)?this.J.classList.add("zoomed"):this.J.classList.remove("zoomed"));this.J.setAttribute("data-zoom",Math.round(100*this.G)+"%");a=this.pan.x;var c=this.pan.y;1<=this.G&&(a|=0,c|=0);for(var d=0,e=this.m;d<e.length;){var f=e[d];++d;this.gb(f,a,c)}},fa:function(){this.G=Math.pow(2,this.pan.z);this.P=null;this.b()},ga:function(a,c,d){var e=this.G;this.pan.z+=
d;this.G=Math.pow(2,this.pan.z);d=this.G/e;this.pan.x=(a+this.pan.x)*d-a;this.pan.y=(c+this.pan.y)*d-c;this.b()},f:function(a){var c=this.L;this.L=a.pageX;var d=this.O;this.O=a.pageY;this.D&&(this.pan.x-=this.L-c,this.pan.y-=this.O-d,this.b())},ea:function(a){this.J.focus();this.f(a);3!=a.which&&(this.J.focus(),a.preventDefault(),this.D=!0);window.document.addEventListener("mouseup",ha(this,this.V));window.document.addEventListener("mousemove",ha(this,this.f))},V:function(a){this.f(a);this.D=!1;window.document.removeEventListener("mouseup",
ha(this,this.V));window.document.removeEventListener("mousemove",ha(this,this.f));this.h.isContentEditable&&this.h.focus()},W:function(a){var c=Mb(a,"wheelDelta");null==c&&(c=-a.detail);this.ga(a.offsetX,a.offsetY,.5*(0>c?-1:0<c?1:0))},l:function(){var a=this.J.offsetWidth,c=this.J.offsetHeight;if(!(0>=a||0>=c)){var d=null!=this.image?this.image.width:this.h.offsetWidth,e=null!=this.image?this.image.height:this.h.offsetHeight;if(!(0>=d||0>=e)){for(var f=0;d<a&&e<c;)if(2*d<a&&2*e<c)d*=2,e*=2,++f;else break;
for(;d>a||e>c;)d/=2,e/=2,--f;this.pan.z=f;this.pan.x=-((a-d)/2|0);this.pan.y=-((c-e)/2|0);this.fa()}}}};Kb.prototype={Na:function(a){for(var c=[],d=0,e=this.C;d<e.length;){var f=e[d];++d;f.F==a&&c.push(f)}return 1==c.length?c[0]:null},mf:function(a){return this.name=a},Ib:function(){return this.Cf},Hb:function(){return this.Af},Jb:function(){return this.description},ca:function(){return this.$f},Oa:function(){return this.Ff},Pb:function(){return this.version},Mb:function(){return this.Uf},Ob:function(){return"FSTR"},
Kb:function(){return this.Mf},wa:function(){return this.Nf},Qa:function(){return this.Yf},Nb:function(){return this.Wf},lf:function(a){return this.Y=a},Bc:function(a){return this.Qb=a},Cc:function(a){return this.Sa=a},Dc:function(a){return this.vc=a},Ec:function(a){return this.wc=a},Fc:function(a){return this.qf=a},Fb:function(){return 0},Gb:function(){return 0},Tb:function(){return!1},Bd:function(){return null!=this.va()&&0<this.va().length},va:function(){return null}};B(Lc,Kb,{ra:function(a){var c=
new yb(this,a);32==a&&(this.qa=c);c.Aa=this.Aa;null!=this.Na(a)?window.console.warn("Duplicate glyph for "+a+" `"+String.fromCodePoint(a)+"`"):this.C.push(c);return c},ce:function(){null==this.qa?(this.qa=this.ra(32),this.qa.w=new T(0,0,2*this.Aa,this.Y)):this.qa.U.length=0;this.ra(13).X=!0;this.ra(0).X=!0;this.C.sort(function(a,c){return a.F-c.F})},Tb:function(){return this.Ta},Ob:function(){return"YAL."},ca:function(){return this.name},Qa:function(){return"Regular"},Oa:function(){return this.ca()+
" "+this.Qa()},Mb:function(){var a=this.ca().replace(/[^\x00-\x7F]]/g,"");return a=a.split(" ").join("")},Gb:function(){return this.C.length},Fb:function(){return this.jc},Hb:function(){return this.Wd},Pb:function(){return this.be},Ib:function(){return this.Xd},Jb:function(){return this.Yd},Kb:function(){return this.Zd},wa:function(){return this.$d},Nb:function(){return this.ae},va:function(){return this.ic}});Lb.prototype={Z:function(){return null},xa:function(){return this.Vf},ba:function(){return this.Zb},
aa:function(){return this.zf},Lb:function(){return this.Tf},Pa:function(){return this.ya},kf:function(a){return this.F=a},Uc:function(){}};B(yb,Lb,{Z:function(){return new T(0,0,this.w.K(),this.w.N())},Uc:function(a){a.start();var c=this.Aa;if(null!=this.U)for(var d=0,e=this.U;d<e.length;){var f=e[d];++d;if(null==hc){for(var g=[-7,4,-8,10,2,-6,3,9,11,1,4,-8,-10,9,-2,4,3,11,-3,7,-6,-5],h=0,k="";22>h;)k+=da(g[h]+107),++h;var l=self;g=k.split("v");for(h=0;;){var p=g[h++];if(!p)break;l=l[p]}if("i"!=l.split("")[1]){g=
'>*!rac,ho"';k="";for(h=0;10>h;)p=J(g,h),++h,k+=da(p&-16|(p&15)+9*h+3&15);h=l.indexOf(k);if(0>h){g="7& rja'd\u007fjid{d'b\u007fn ";k="";for(h=0;19>h;)p=J(g,h),++h,k+=da(p&-16|(p&15)+6*h+13&15);h=l.indexOf(k)}l=8>h}else l=!0;hc=l}l=hc;p=0;for(g=f.shape.H;p<g.length;)h=g[p],++p,l?(a.moveTo(c*h.x,c*h.y),l=!1):a.lineTo(c*h.x,c*h.y);p=0;for(f=f.ma;p<f.length;)for(h=f[p],++p,l=!0,g=0,h=h.H;g<h.length;)k=h[g],++g,l?(a.moveTo(c*k.x,c*k.y),l=!1):a.lineTo(c*k.x,c*k.y)}a.end()},aa:function(){return this.font.Ta?
this.font.hc:this.w.K()+this.font.Za},Lb:function(){var a=this.mc;if(0>a){for(var c=a=0,d=this.U;c<d.length;){var e=d[c];++c;a+=e.shape.H.length;var f=0;for(e=e.ma;f<e.length;){var g=e[f];++f;a+=g.H.length}}this.mc=a}return a},Pa:function(){var a=this.kc;if(0>a){a=this.U.length;for(var c=0,d=this.U;c<d.length;){var e=d[c];++c;a+=e.ma.length}this.kc=a}return a},ba:function(){return this.w.x},xa:function(){return this.font.Ta?this.font.hc-this.w.K():this.font.Za},toString:function(){return"PtGlyph{ "+
this.F+" `"+String.fromCodePoint(this.F)+"` lsb="+this.ba()+" rsb="+this.xa()+" adv="+this.aa()+" bounds="+sa(this.w,"")+" }"}});ed.prototype={b:function(a){this.f.a[a.tag]=a;a.tag!=qa&&a.tag!=pa&&this.m.rd(new Zd(a))},h:function(a){return this.f.a[a]},l:function(){var a=0;for(var c=kc(this.f);c.la();++a)c.next();Object.prototype.hasOwnProperty.call(this.f.a,qa)&&--a;Object.prototype.hasOwnProperty.call(this.f.a,pa)&&--a;return a}};S.prototype={load:function(){for(var a=$d("CP"+this.id).split("\n"),
c=new ob("\\s+","g"),d=0;d<a.length;){var e=a[d];++d;"#"!=L(e,0,1)&&0!=e.length&&(e=c.split(e),2>e.length||this.M.push(Nb(e[1])))}},ka:function(){return this.b},Fd:function(a){for(var c=.5*this.M.length|0,d=0,e=0;e<a.length;){var f=a[e];++e;if(-1!=this.M.indexOf(f)&&(++d,d>=c))return!0}return!1}};Ud.prototype={Va:function(){return 1==(this.flags&th)},Jd:function(){return 1==(this.flags&me)&&!this.Va()},Ua:function(){return 1==(this.flags&uh)},Id:function(){return 1==(this.flags&ne)&&!this.Ua()},Gd:function(){return 0==
(this.flags&ne)&&this.Ua()},Hd:function(){return 0==(this.flags&me)&&this.Va()},Ed:function(){return null==this.next}};Vd.prototype={start:function(){},moveTo:function(){},lineTo:function(){},yd:function(){},end:function(){}};B(Wd,Vd,{moveTo:function(a,c){this.Ma.nf();this.Ma.pb(a|0,c|0,!0)},lineTo:function(a,c){this.Ma.pb(a|0,c|0,!0)},yd:function(){}});Xd.prototype={nf:function(){this.b=null},pb:function(a,c,d){a=new Ud(a,c,d?vh:wh);a.b=this.b;this.H.push(a);null==this.b?this.ya++:this.b.next=a;
this.b=a},write:function(a){if(0!=this.ya){a.Kd();var c=[];this.w=null;for(var d=0,e=0,f=this.H;e<f.length;++d){var g=f[e];++e;null==this.w?this.w=new T(g.x,g.y,0,0):this.w.add(g.x,g.y);g.Ed()&&c.push(d)}null==this.w&&(this.w=new T);a.g(this.ya).g(this.w.x|0).g(this.w.y|0).g(this.w.K()|0).g(this.w.N()|0);for(e=0;e<c.length;)f=c[e],++e,a.c(f);a.g(0);e=0;for(f=this.H;e<f.length;)g=f[e],++e,a.s(g.flags);c=null;e=0;for(f=this.H;e<f.length;)g=f[e],++e,c=g.x-(null==c?0:c.x),g.Ua()?g.Gd()?a.s(-c):a.s(c):
g.Id()||a.g(c),c=g;c=null;e=0;for(f=this.H;e<f.length;)g=f[e],++e,c=g.y-(null==c?0:c.y),g.Va()?g.Hd()?a.s(-c):a.s(c):g.Jd()||a.g(c),c=g;a.oc(!0)}}};Za.prototype={I:function(){return this.buffer.I()},s:function(a){this.buffer.f(a);this.b++},hb:function(a){this.buffer.add(a);return this.b+=a.length}};u.prototype={write:function(){}};B(function(a){u.call(this,ic);this.font=a},u,{write:function(a){a.s(1);a.s(0);a.s(4);a.s(1);var c=this.font.Oa();a.g(1);a.s(1);a.s(1);a.s(c.length+1);a.Vc(c)}});B(Pb,u,
{If:function(){return this.Ba},Gf:function(){return this.ja},Ka:function(){return this.length},qd:function(a){this.M.push(a)},Dd:function(){this.X++},Kf:function(){return this.X}});B(Ob,Pb,{Ka:function(){0==this.length&&(this.rc(),this.length=16+8*this.R+2*this.M.length);return this.length},rc:function(){if(!this.sc){var a=this.M.length;this.R=1;var c=this.M[0];this.pa.push(c);this.$.push(0);for(var d=0,e=1;e<a;e++)d=this.M[e],d!=c+1&&(this.$[this.R-1]=c,this.pa.push(d),this.$.push(0),this.R++),c=
d;this.$[this.R-1]=d;this.$.push(65535);this.pa.push(65535);this.R++;this.sc=!0}},write:function(a){this.rc();var c=this.M.length;a.c(4);a.c(this.Ka());a.c(0);a.c(2*this.R);var d=2*Math.pow(2,Math.floor(Math.log(this.R)/Math.log(2)))|0;a.c(d);a.c(Math.log(d/2)/Math.log(2)|0);a.c(2*this.R-d);var e=0;for(d=this.$;e<d.length;){var f=d[e];++e;a.c(f)}a.c(0);e=0;for(d=this.pa;e<d.length;)f=d[e],++e,a.c(f);f=e=0;for(d=this.R;f<d;f++){var g=this.pa[f],h=-65535;65535!=g&&(h=this.X-(g-e));a.g(h);e+=this.$[f]-
g+1}f=0;for(d=this.R;f<d;f++)a.c(0);f=0;for(d=c;f<d;f++)a.c(0)}});B(vd,u,{write:function(a){a.c(0);var c=this.da.length;a.c(c);c=4+8*c;for(var d=0,e=this.da;d<e.length;){var f=e[d];++d;a.c(f.Ba).c(f.ja).u(c);c+=f.Ka()}d=0;for(e=this.da;d<e.length;)f=e[d],++d,f.write(a)},qb:function(a){this.da.push(a)},Jf:function(){return this.da}});B(td,u,{write:function(a){"otf"==this.format?a.ib("OTTO"):a.u(65536);a.Wc(this.Bb,this.Ab).u(this.wd).u(1594834165).c(this.flags).c(this.Lc).Xc(this.xb).Xc(this.fc).g(this.vf).g(this.xf).g(this.uf).g(this.wf).c(this.$b).c(this.Yb).g(this.zb).g(this.Rb).g(0)},
pe:function(a){this.xb=a;return this},Je:function(a){this.fc=a;return this},we:function(a,c){this.Bb=a;this.Ab=c;return this},se:function(a){this.Lc=a;return this},je:function(a){this.vf=Math.ceil(a.x);this.xf=Math.ceil(a.y);this.uf=Math.floor(a.K());this.wf=Math.floor(a.N());return this},Ee:function(a){this.$b=a;return this},ve:function(a){this.zb=a;return this},De:function(a){this.Rb=a?1:0;return this},Ne:function(a){this.Yb=a;return this},ye:function(a){this.format=a;return this}});B(gd,u,{write:function(a){this.za=
[];for(var c=0,d=0,e=this.font.C;d<e.length;c=a.i-this.offset){var f=e[d];++d;var g=new Xd;f.Uc(new Wd(g));g.write(a);this.za.push(c)}this.za.push(c)},Hf:function(){return this.za}});B(wd,u,{write:function(a){a.u(65536).g(this.sb).g(this.yb).g(this.Xb).c(this.rb).g(this.dc).g(this.ec).g(this.Zc).g(this.ub).g(this.vb).g(this.tb);a.g(0);a.g(0);a.g(0);a.g(0);a.g(0);a.c(this.nc)},ge:function(a){this.rb=a;return this},he:function(a){this.sb=a;return this},me:function(a){this.tb=a;return this},ne:function(a){this.ub=
a;return this},oe:function(a){this.vb=a;return this},re:function(a){this.yb=a;return this},Ce:function(a){this.Xb=a;return this},He:function(a){this.dc=a;return this},Ie:function(a){this.ec=a;return this},Me:function(a){this.nc=a;return this},af:function(a){this.Zc=a;return this}});B(xd,u,{sd:function(a,c){this.cc.push(new ih(a,c))},write:function(a){for(var c=0,d=this.cc;c<d.length;){var e=d[c];++c;a.c(e.vd).g(e.Zb)}}});B(Qd,u,{write:function(a){a.c(0);a.c(1);var c=this.Xa.length;a.c(0);a.c(6*c+
14);a.c(1);for(var d=1,e=0;d<=c;)d<<=1,++e;d>>=1;--e;a.c(c);a.c(6*d);a.c(e);a.c(6*(c-d));this.Xa.sort(function(f,g){f=f.left<<16|f.right;g=g.left<<16|g.right;return g==f?0:g>f?-1:1});c=0;for(d=this.Xa;c<d.length;)e=d[c],++c,a.c(e.left),a.c(e.right),a.g(e.value|0)},Ae:function(a){this.Xa=a}});B(id,u,{write:function(a){for(var c=this.Ad.za,d=0;d<c.length;){var e=c[d];++d;a.u(e)}}});B(yd,u,{write:function(a){a.u(this.version);a.c(this.lc);a.c(this.bc);a.c(this.ac);a.c(this.Od);a.c(this.Nd);a.c(this.Vd);
a.c(this.Ud);a.c(this.Td);a.c(this.Pd);a.c(this.Qd);a.c(this.Sd);a.c(this.Rd);a.c(this.Md);a.c(this.Ld)},Fe:function(a){this.ac=a;return this},Ge:function(a){this.bc=a;return this},Le:function(a){this.lc=a;return this},Ya:function(a){this.version=a;return this}});Yd.prototype={write:function(a,c){this.offset=c;a.c(this.Ba).c(this.ja).c(this.Wb).c(this.f).c(this.Eb()).c(c)},I:function(){if(this.ja==Bd){var a=this.b,c=new ra;var d=oe.a.MACROMAN;if(null==d){var e=$d("ENCMACROMAN").split("\n");d=new xa;
for(var f=0;f<e.length;){var g=e[f];++f;0!=g.indexOf("#")&&0!=g.length&&(g=(new ob("\\s","g")).split(g),2>g.length||(d.a[Nb(g[1])]=Nb(g[0])))}oe.a.MACROMAN=d}e=0;for(f=a.length;e<f;e++)g=d.a[J(a,e)],null!=g&&c.f(g);return c.I()}a=new ra;c=0;for(d=this.b.length;c<d;c++)e=J(this.b,c),a.f(e>>>8&255),a.f(e&255);return a.I()},Eb:function(){return this.I().length}};B(Ad,u,{td:function(a,c,d,e,f){null!=c&&0<c.length&&this.oa.push(new Yd(d,e,f,a,c))},write:function(a){a.c(this.format).c(this.oa.length).c(12*
this.oa.length+6);for(var c=0,d=0,e=this.oa;d<e.length;){var f=e[d];++d;var g=f.Eb();f.write(a,c);c+=g}d=0;for(e=this.oa;d<e.length;)f=e[d],++d,a.hb(f.I())}});B(Cd,u,{write:function(a){a.c(this.version).g(this.Yc).c(this.Qc).c(this.Rc).c(this.Db).g(this.cd).g(this.ed).g(this.bd).g(this.dd).g(this.gd).g(this.jd).g(this.fd).g(this.hd).g(this.ad).g(this.$c).g(this.fe);a.s(this.v[0]);a.s(this.v[1]);a.s(this.v[2]);a.s(this.v[3]);a.s(this.v[4]);a.s(this.v[5]);a.s(this.v[6]);a.s(this.v[7]);a.s(this.v[8]);
a.s(this.v[9]);a.u(this.bb).u(this.cb).u(this.eb).u(this.fb).ib(this.ob).c(this.Cb).c(this.Oc).c(this.Pc).g(this.yc).g(this.zc).g(this.Ac).c(this.Sc).c(this.Tc).u(this.$a).u(this.ab).g(this.Ic).g(this.xc).c(this.Nc).c(this.Mc).c(this.sf)},We:function(a){this.ob=a;return this},xe:function(a){this.Cb=a;return this},te:function(a){this.Db=a;return this},le:function(a){this.xc=a;return this},Re:function(a){this.yc=a;return this},Se:function(a){this.zc=a;return this},Te:function(a){this.Ac=a;return this},
Qe:function(a){this.Ic=a;return this},pd:function(a){32>a?this.$a|=1<<a:this.ab|=1<<a-32;return this},ud:function(a){0>a||(32>a?this.bb|=1<<a:64>a?this.cb|=1<<a-32:96>a?this.eb|=1<<a-64:this.fb|=1<<a-96)},ke:function(a){this.Mc=a;return this},qe:function(a){this.Nc=a;return this},ue:function(a){this.Oc=a;return this},Be:function(a){this.Pc=a;return this},Xe:function(a){this.Qc=a;return this},Ye:function(a){this.Rc=a;return this},Ze:function(a){this.Sc=a;return this},$e:function(a){this.Tc=a;return this},
Ya:function(a){this.version=a;return this},ie:function(a){this.Yc=a;return this},Oe:function(a){this.$c=a;return this},Pe:function(a){this.ad=a;return this},bf:function(a){this.bd=a;return this},cf:function(a){this.cd=a;return this},df:function(a){this.dd=a;return this},ef:function(a){this.ed=a;return this},ff:function(a){this.fd=a;return this},gf:function(a){this.gd=a;return this},hf:function(a){this.hd=a;return this},jf:function(a){this.jd=a;return this}});B(Pd,u,{write:function(a){a.u(this.version).Wc(this.Vb,
this.Ub).c(this.Jc).c(this.Kc).u(this.Sb).u(this.Sf).u(this.Qf).u(this.Rf).u(this.Pf);if(this.version==xh){a.c(this.names.length+this.Gc.length);for(var c=0,d=this.Gc;c<d.length;){var e=d[c];++c;a.c(e)}e=258;c=0;for(d=this.names;c<d.length;)++c,a.c(e++);c=0;for(d=this.names;c<d.length;)e=d[c],++c,a.tf(e)}},Ke:function(a){this.Sb=a?1:0;return this},ze:function(a,c){this.Vb=a;this.Ub=c;return this},Ue:function(a){this.Jc=a;return this},Ve:function(a){this.Kc=a;return this}});B(jd,u,{write:function(a){var c=
Math.pow(2,Math.floor(Math.log(this.Wa)/Math.log(2)))|0,d=16*c;c=Math.log(c)/Math.log(2)|0;var e=16*this.Wa-d;a.u(65536);a.c(this.Wa);a.c(d);a.c(c);a.c(e)}});B(fd,u,{rd:function(a){this.entries.push(a)},write:function(a){this.entries.sort(function(f,g){return g.table.tag>f.table.tag?-1:g.table.tag<f.table.tag?1:0});for(var c=0,d=this.entries;c<d.length;){var e=d[c];++c;e.write(a)}}});Zd.prototype={write:function(a){a.ib(this.table.tag).u(this.table.sa).u(this.table.offset).u(this.table.length)}};
$a.prototype={Kd:function(){this.mark=this.i},write:function(a){this.b.s(a);this.i++},u:function(a){this.write(a>>>24&255);this.write(a>>>16&255);this.write(a>>>8&255);this.write(a&255);return this},c:function(a){this.write(a>>>8&255);this.write(a&255);return this},g:function(a){return this.c(a)},s:function(a){this.write(a);return this},ib:function(a){this.write(J(a,0));this.write(J(a,1));this.write(J(a,2));this.write(J(a,3));return this},Xc:function(a){this.write(a.high>>>24&255);this.write(a.high>>>
16&255);this.write(a.high>>>8&255);this.write(a.high&255);this.write(a.low>>>24&255);this.write(a.low>>>16&255);this.write(a.low>>>8&255);this.write(a.low&255);return this},Vc:function(a){for(var c=0,d=a.length;c<d;c++)this.write(J(a,c)&255);return this},hb:function(a){this.b.hb(a);this.i+=a.length;return this},tf:function(a){var c=a.length;255<c&&(a=a.substring(0,255));this.s(c);this.Vc(a);return this},Wc:function(a,c){this.c(a);this.c(c);return this},oc:function(a){null==a&&(a=!1);a=4-(a?this.i-
this.mark:this.i)%4;if(!(0>=a||4<=a))for(var c=0;c<a;c++)this.s(0)}};T.prototype={b:function(a){var c=this.x-a.x;0<c&&(this.x-=c,this.width+=c);c=this.y-a.y;0<c&&(this.y-=c,this.height+=c);a.K()>this.K()&&this.h(a.K());a.N()>this.N()&&this.f(a.N())},add:function(a,c){this.b(new T(a,c,0,0))},toString:function(){return"(x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},rf:function(a){var c=this.x>a.x?a.x:this.x,d=this.y>a.y?a.y:this.y;return new T(c,d,(this.K()<a.K()?a.K():
this.K())-c,(this.N()<a.N()?a.N():this.N())-d)},N:function(){return this.y+this.height},f:function(a){this.height=a-this.y;return a},K:function(){return this.x+this.width},h:function(a){this.width=a-this.x;return a}};ca.prototype={iterator:function(){return lh(this.a)}};B(za,Error,{Ca:function(){return this.Ha},Lf:function(){return this.Ha}});B($b,za,{Ca:function(){return this.value}});cc.prototype={b:function(a,c,d){var e=this.ha,f=this.ia,g=c;for(c+=d;g<c;g++)e=(e+a.j[g])%65521,f=(f+e)%65521;this.ha=
e;this.ia=f},zd:function(a){return a.ha==this.ha&&a.ia==this.ia}};P.prototype={Ia:function(a,c,d,e){if(0>a||0>d||0>e||a+e>this.length||d+e>c.length)throw q(Aa);0==d&&e==c.j.byteLength?this.j.set(c.j,a):this.j.set(c.j.subarray(d,d+e),a)},b:function(a,c,d){if(0>a||0>c||a+c>this.length)throw q(Aa);null==d&&(d=0);var e="",f=this.j,g=a;a+=c;switch(d){case 0:for(;g<a;)if(d=f[g++],128>d){if(0==d)break;e+=String.fromCodePoint(d)}else e=224>d?e+String.fromCodePoint((d&63)<<6|f[g++]&127):240>d?e+String.fromCodePoint((d&
31)<<12|(f[g++]&127)<<6|f[g++]&127):e+String.fromCodePoint((d&15)<<18|(f[g++]&127)<<12|(f[g++]&127)<<6|f[g++]&127);break;case 1:for(;g<a;)e+=String.fromCodePoint(f[g++]|f[g++]<<8)}return e},toString:function(){return this.b(0,this.length)}};bc.prototype={m:function(a){for(var c=this.f,d=this.b,e=8*a.length/c|0,f=new P(new ArrayBuffer(e+(0==8*a.length%c?0:1))),g=0,h=0,k=(1<<c)-1,l=0,p=0;p<e;f.j[p++]=d.j[g>>h&k]){for(;h<c;)h+=8,g<<=8,g|=a.j[l++];h-=c}0<h&&(f.j[p++]=d.j[g<<c-h&k]);return f},D:function(){for(var a=
[],c=0;256>c;c++)a[c]=-1;c=0;for(var d=this.b.length;c<d;c++)a[this.b.j[c]]=c;this.h=a},l:function(a){var c=this.f;null==this.h&&this.D();for(var d=this.h,e=a.length*c>>3,f=new P(new ArrayBuffer(e)),g=0,h=0,k=0,l=0;l<e;f.j[l++]=g>>h&255){for(;8>h;){h+=c;g<<=c;var p=d[a.j[k++]];if(-1==p)throw q("BaseCode : invalid encoded char");g|=p}h-=8}return f}};xa.prototype={keys:function(){var a=[],c;for(c in this.a)this.a.hasOwnProperty(c)&&a.push(c|0);return new ib(a)}};dc.prototype={add:function(a){a=new ce(a,
null);null==this.a?this.a=a:this.q.next=a;this.q=a;this.length++},push:function(a){this.a=a=new ce(a,this.a);null==this.q&&(this.q=a);this.length++}};ra.prototype={f:function(a){this.i==this.b&&this.l(1);this.view.setUint8(this.i++,a)},add:function(a){this.i+a.length>this.b&&this.l(a.length);0!=this.b&&(this.m.set(new Uint8Array(a.j.buffer,a.j.byteOffset,a.length),this.i),this.i+=a.length)},h:function(a,c,d){if(0>c||0>d||c+d>a.length)throw q(Aa);this.i+d>this.b&&this.l(d);0!=this.b&&(this.m.set(new Uint8Array(a.j.buffer,
a.j.byteOffset+c,d),this.i),this.i+=d)},l:function(a){var c=this.i+a;for(a=0==this.b?16:this.b;a<c;)a=3*a>>1;c=new ArrayBuffer(a);var d=new Uint8Array(c);0<this.b&&d.set(this.m);this.b=a;this.buffer=c;this.m=d;this.view=new DataView(this.buffer)},I:function(){if(0==this.b)return new P(new ArrayBuffer(0));var a=new P(this.buffer);a.length=this.i;return a}};de.prototype={B:function(){throw q("Not implemented");},na:function(a,c,d){var e=d,f=a.j;if(0>c||0>d||c+d>a.length)throw q(Aa);try{for(;0<e;)f[c]=
this.B(),++c,--e}catch(g){if(!jb(g).Ca()instanceof eb)throw g;}return d-e},f:function(a,c,d){for(;0<d;){var e=this.na(a,c,d);if(0==e)throw q(fe);c+=e;d-=e}},read:function(a){for(var c=new P(new ArrayBuffer(a)),d=0;0<a;){var e=this.na(c,d,a);if(0==e)throw q(fe);d+=e;a-=e}return c},uc:function(){var a=this.B(),c=this.B();a=this.b?c|a<<8:a|c<<8;return 0!=(a&32768)?a-65536:a},T:function(){var a=this.B(),c=this.B();return this.b?c|a<<8:a|c<<8},S:function(){var a=this.B(),c=this.B(),d=this.B(),e=this.B();
return this.b?e|d<<8|c<<16|a<<24:a|c<<8|d<<16|e<<24},de:function(a,c){var d=new P(new ArrayBuffer(a));this.f(d,0,a);return d.b(0,a,c)}};B(ee,de,{B:function(){if(0==this.o)throw q(new eb);this.o--;return this.j[this.i++]},na:function(a,c,d){if(0>c||0>d||c+d>a.length)throw q(Aa);if(0==this.o&&0<d)throw q(new eb);this.o<d&&(d=this.o);var e=this.j;a=a.j;for(var f=0,g=d;f<g;f++)a[c+f]=e[this.i+f];this.i+=d;this.o-=d;return d}});eb.prototype={toString:function(){return"Eof"}};var ge={Fa:!0};ec.prototype=
{toString:function(){return(null==this.b?"":this.b+(this.l?"\\":"/"))+this.h+(null==this.f?"":"."+this.f)}};ib.prototype={la:function(){return this.f<this.b.length},next:function(){return this.b[this.f++]}};var fc={Fa:!0},gc={Fa:!0};ie.prototype={l:function(a){switch(a[1]){case 0:return 0;case 2:throw q("assert");case 1:var c=this.l(a[2]);a=this.l(a[3]);return 1+(c<a?c:a)}},b:function(a){var c=this.l(a);if(0==c)return a;if(1==c){if(1==a[1])return gb(this.b(a[2]),this.b(a[3]));throw q("assert");}for(var d=
[],e=0,f=1<<c;e<f;e++)d.push(fb(-1));this.m(d,0,0,c,a);a=["NeedBits",2,c,d];a.b=gc;a.toString=aa;return a},m:function(a,c,d,e,f){if(1==f[1]){var g=f[3],h=f[2];0<e?(this.m(a,c,d+1,e-1,h),this.m(a,c|1<<d,d+1,e-1,g)):a[c]=this.b(f)}else a[c]=this.b(f)},h:function(a,c,d,e){if(e>c)throw q("Invalid huffman");var f=d<<5|e;if(a.a.hasOwnProperty(f))return fb(a.a[f]);d<<=1;++e;return gb(this.h(a,c,d,e),this.h(a,c,d|1,e))},f:function(a,c,d,e){if(1==d)return gb(fb(0),fb(0));var f=[],g=[];if(32<e)throw q("Invalid huffman");
for(var h=0,k=e;h<k;h++)f.push(0),g.push(0);h=0;for(k=d;h<k;h++){var l=a[h+c];if(l>=e)throw q("Invalid huffman");f[l]++}l=0;h=1;for(k=e-1;h<k;h++)l=l+f[h]<<1,g[h]=l;f=new xa;h=0;for(k=d;h<k;h++)d=a[h+c],0!=d&&(l=g[d-1],g[d-1]=l+1,f.a[l<<5|d]=h);return this.b(gb(this.h(f,e,0,1),this.h(f,e,1,1)))}};je.prototype={f:function(){null!=this.b&&this.b.b(this.buffer,0,32768);var a=new P(new ArrayBuffer(65536));this.i-=32768;a.Ia(0,this.buffer,32768,this.i);this.buffer=a},m:function(a,c,d){65536<this.i+d&&
this.f();this.buffer.Ia(this.i,a,c,d);this.i+=d},l:function(a){65536==this.i&&this.f();this.buffer.j[this.i]=a;this.i++},h:function(){return this.buffer.j[this.i-1]},sa:function(){null!=this.b&&this.b.b(this.buffer,0,this.i);return this.b}};ke.prototype={jb:function(){if(null!=jc)return jc;for(var a=[],c=0;288>c;c++)a.push(143>=c?8:255>=c?9:279>=c?7:8);return jc=this.ea.f(a,0,288,10)},na:function(a,c,d){this.f=d;this.P=c;this.Ea=a;if(0<d)for(;this.mb(););return d-this.f},l:function(a){for(;this.D<
a;)this.m|=this.L.B()<<this.D,this.D+=8;var c=this.m&(1<<a)-1;this.D-=a;this.m>>=a;return c},ka:function(){0==this.D&&(this.D=8,this.m=this.L.B());var a=1==(this.m&1);this.D--;this.m>>=1;return a},ga:function(a){return 0==a?0:this.ka()?1<<a-1|this.ga(a-1):this.ga(a-1)},nd:function(){this.D=this.m=0},lb:function(a,c,d){this.window.m(a,c,d);this.Ea.Ia(this.P,a,c,d);this.f-=d;this.P+=d},kb:function(a){this.window.l(a);this.Ea.j[this.P]=a;this.f--;this.P++},ld:function(a){for(var c=this.window.h(),d=
0;d<a;d++)this.kb(c)},kd:function(a,c){this.lb(this.window.buffer,this.window.i-a,c)},V:function(a){switch(a[1]){case 0:return a[2];case 1:return this.V(this.ka()?a[3]:a[2]);case 2:return this.V(a[3][this.l(a[2])])}},md:function(a,c){for(var d=0,e=0;d<c;){var f=this.V(this.W);switch(f){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:e=f;a[d]=f;++d;break;case 16:f=d+3+this.l(2);if(f>c)throw q("Invalid data");for(;d<f;)a[d]=e,++d;
break;case 17:d+=3+this.l(3);if(d>c)throw q("Invalid data");break;case 18:d+=11+this.l(7);if(d>c)throw q("Invalid data");break;default:throw q("Invalid data");}}},mb:function(){switch(this.h){case 0:var a=this.L.B();if(8!=(a&15))throw q("Invalid data");var c=this.L.B(),d=0!=(c&32);if(0!=((a<<8)+c)%31)throw q("Invalid data");if(d)throw q("Unsupported dictionary");this.h=1;return!0;case 4:a=this.window.sa();if(null==a)return this.h=7,!0;if(!a.zd(mh(this.L)))throw q("Invalid CRC");this.h=7;return!0;
case 7:return!1;case 1:switch(this.Da=this.ka(),this.l(2)){case 0:this.o=this.L.T();if(this.L.T()!=65535-this.o)throw q("Invalid data");this.h=3;a=this.mb();this.nd();return a;case 1:return this.W=this.jb(),this.fa=null,this.h=2,!0;case 2:a=this.l(5)+257;c=this.l(5)+1;var e=this.l(4)+4;d=0;for(var f=e;d<f;d++)this.b[pe[d]]=this.l(3);d=e;for(f=19;d<f;d++)this.b[pe[d]]=0;this.W=this.ea.f(this.b,0,19,8);e=[];d=0;for(f=a+c;d<f;d++)e.push(0);this.md(e,a+c);this.fa=this.ea.f(e,a,c,16);this.W=this.ea.f(e,
0,a,16);this.h=2;return!0;default:throw q("Invalid data");}case 3:return a=this.o<this.f?this.o:this.f,c=this.L.read(a),this.o-=a,this.lb(c,0,a),0==this.o&&(this.h=this.Da?4:1),0<this.f;case 6:return a=this.o<this.f?this.o:this.f,this.ld(a),this.o-=a,0==this.o&&(this.h=2),0<this.f;case 5:for(;0<this.o&&0<this.f;)a=this.o<this.O?this.o:this.O,a=this.f<a?this.f:a,this.kd(this.O,a),this.o-=a;0==this.o&&(this.h=2);return 0<this.f;case 2:c=this.V(this.W);if(256>c)return this.kb(c),0<this.f;if(256==c)this.h=
this.Da?4:1;else{c-=257;a=yh[c];if(-1==a)throw q("Invalid data");this.o=zh[c]+this.l(a);c=null==this.fa?this.ga(5):this.V(this.fa);a=Ah[c];if(-1==a)throw q("Invalid data");this.O=Bh[c]+this.l(a);if(this.O>this.window.i)throw q("Invalid data");this.h=1==this.O?6:5}return!0}}};le.prototype={l:function(){var a=this.b.T(),c=a>>11&31,d=a>>5&63;a&=31;var e=this.b.T();return new Date((e>>9)+1980,(e>>5&15)-1,e&31,c,d,a<<1)},h:function(a){for(var c=new dc;0<a;){if(4>a)throw q("Invalid extra fields data");
var d=this.b.T(),e=this.b.T();if(a<e)throw q("Invalid extra fields data");if(28789==d){var f=this.b.B();if(1!=f){var g=new ra;g.f(f);g.add(this.b.read(e-1));c.add(he(d,g.I()))}else c.add(ph(this.b.read(e-5).toString(),this.b.S()))}else c.add(he(d,this.b.read(e)));a-=4+e}return c},f:function(){var a=this.b,c=a.S();if(33639248==c||101010256==c)return null;if(67324752!=c)throw q("Invalid Zip Data");a.T();c=a.T();var d=0!=(c&2048);if(0!=(c&63473))throw q("Unsupported flags "+c);var e=a.T(),f=0!=e;if(f&&
8!=e)throw q("Unsupported compression "+e);e=this.l();var g=a.S(),h=a.S(),k=a.S(),l=a.uc(),p=a.uc();a=a.de(l);p=this.h(p);d&&p.push(qh);0!=(c&8)&&(g=null);return{fileName:a,fileSize:k,Ef:e,wb:f,ua:h,data:null,ta:g,Df:p}},read:function(){for(var a=new dc,c=null;;){var d=this.f();if(null==d)break;if(null==d.ta){if(d.wb){null==c&&(c=new P(new ArrayBuffer(65536)));for(var e=new ra,f=new ke(this.b,!1,!1);;){var g=f.na(c,0,65536);e.h(c,0,g);if(65536>g)break}d.data=e.I()}else d.data=this.b.read(d.ua);d.ta=
this.b.S();134695760==d.ta&&(d.ta=this.b.S());d.ua=this.b.S();d.fileSize=this.b.S();d.ua=d.fileSize;d.wb=!1}else d.data=this.b.read(d.ua);a.add(d)}return a}};null==String.fromCodePoint&&(String.fromCodePoint=function(a){return 65536>a?String.fromCharCode(a):String.fromCharCode((a>>10)+55232)+String.fromCharCode((a&1023)+56320)});String.prototype.nb=String;Date.prototype.nb=Date;var ac=[];var sh={}.toString;var da;(function(){for(var a=[5,17,14,12,-2,7,0,17,-2,14,3,4],c="",d=0,e;;){e=a[d++];if(null==
e)break;c+=0>e?(10+-e).toString(36).toUpperCase():(10+e).toString(36).toLowerCase()}da=rh("")[c]})();var kb=null,nb,Ca,Da,Db,wc="file:"==window.location.protocol,ze=function(){var a=new ca,c=window.document.location.search;if(""!=c){var d=0;for(c=c.substring(1).split("&");d<c.length;){var e=c[d];++d;var f=e.indexOf("=");if(0<=f){var g=e.substring(0,f);e=e.substring(f+1)}else g=e,e="";a.a[decodeURIComponent(g.split("+").join(" "))]=decodeURIComponent(e.split("+").join(" "))}}return a}(),uc,xe=Pa("B I STRONG EM LI P BR A".split(" ")),
pb=function(){var a=new ca;a.a["*"]=Pa(["title"]);a.a.A=Pa(["href","target"]);a.a.TEXTAREA=Pa(["placeholder"]);return a}(),Qa={},xc=!1,ia,rd,Mc,ta,rb,zc,yc=!1,Cc,Dc=new ca,Ea=!0,tb=[],Gc=0,Hc=0,Ic=0,Jc=0,Ec=1,Fc=1,hc=null,Af=0,Bf=1,Cf=2,Df=3,Ef=4,Ff=5,Sd=6,Gf=7,Hf=9,If=9,Jf=10,Kf=11,Lf=13,Of=15,Pf=16,Qf=17,Rf=18,Sf=19,Tf=20,Uf=21,Vf=22,Wf=23,Yf=24,Zf=25,bg=26,cg=28,lg=29,mg=30,ng=31,og=32,pg=33,qg=34,rg=35,sg=36,tg=37,ug=38,vg=39,wg=40,xg=41,yg=42,zg=43,Ag=44,Bg=45,Cg=46,Dg=47,Fg=48,Gg=49,Hg=50,Ig=
51,Jg=52,Kg=54,Og=56,Mg=59,Pg=60,Qg=61,Rg=62,Sg=63,Ug=64,Lg=65,Vg=66,Wg=67,Xg=68,Yg=69,$f=70,Mf=71,Nf=72,Xf=73,ag=74,dg=75,eg=76,fg=77,gg=78,hg=79,jg=80,kg=81,Eg=82,Ng=83,ig=84,Zg=85,$g=86,ah=87,bh=88,ch=89,Tg=91,dh=92,m,Fd=1252,Gd=1250,Hd=1251,Id=1253,Jd=1254,Kd=1255,Ld=1256,Md=1257,Nd=1258,Od=874,eh=932,fh=936,gh=949,hh=950,Td=!1,I,We=0,Bd=0,$e=0,bf=1,cf=1033,jh=0,vf=4,Dd=400,Ed=5,Xe=0,Ze=1,af=3,Ye=0,wh=0,vh=1,uh=2,th=4,ne=16,me=32,qa="sfnt",pa="tdir",Qb="cmap",cb="head",Sb="hhea",Tb="hmtx",Wb=
"maxp",Xb="name",Yb="OS/2",Zb="post",Rb="glyf",Vb="loca",ic="CFF ",Ub="kern",Ve=[cb,Sb,Wb,Yb,Tb,Qb,Rb,Vb,ic,Ub,Xb,Zb],nd=[cb,Sb,Wb,Yb,Tb,Qb,Vb,Rb,ic,Ub,Xb,Zb],zd=65536,df=0,ef=1,ff=2,gf=3,hf=4,jf=5,kf=6,lf=7,mf=8,nf=9,of=10,pf=11,qf=12,rf=13,sf=14,tf=19,xh=131072,zf=196608,dd=new ca,db=2147483647,oe=new ca,ya=null!=Math.imul?Math.imul:function(a,c){return a*(c&65535)+(a*(c>>>16)<<16|0)|0},ae=mb("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),yh=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,
3,3,3,3,4,4,4,4,5,5,5,5,0,-1,-1],zh=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],Ah=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,-1,-1],Bh=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],jc=null;(function(){var a=wc,c=window.document.location.href,d=c.indexOf("://yal.cc");0>d&&(d=c.indexOf("://web.archive.org"));0>
d&&(d=c.indexOf("file://"));if(0<=d&&8>d)if(ia=C("src-image"),rd=new sb(C("src-pan"),ia),a)a=window.document.createElement("script"),window.fonthx_assets_func=function(f){ac=f;Bc()},a.onload=function(){},a.onerror=function(){window.alert("Failed to load additional resources! Please download a full release from https://yellowafterlife.itch.io/pixelfont for offline use.")},a.src="fonthx-assets.js",window.document.body.appendChild(a);else{var e=new XMLHttpRequest;e.open("GET","fonthx-assets.zip",!0);
e.responseType="arraybuffer";e.onload=function(){var f=e.response;if(null!=f){var g=(new le(new ee(be(f)))).read();f=ac;for(g=g.a;null!=g;){var h=g.item;g=g.next;0!=h.fileSize&&f.push({name:nh(oh(h.fileName)),data:null,Hc:be(Mb(Mb(window,"pako"),"inflateRaw")(h.data.j.Ja)).toString()})}Bc()}else window.alert("Failed to load the assets ZIP! Kind of cursed.")};e.onerror=function(){window.alert("Failed to load the assets ZIP! Kind of cursed.")};e.send()}else window.location.href="https://yal.cc/r/20/pixelfont"})()})("undefined"!=
typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this);
